package cang.string.Day02;

import java.util.Scanner;

public class Demo10 {
    public static void main(String[] args) {

    /*
    替换用户输入信息中的敏感词
     */

        Scanner scan = new Scanner(System.in);
        System.out.println("输入信息：");
        String str = scan.nextLine();
        String strmax = str.replaceAll("我[去草艹]","***");
        System.out.println(strmax);
    }
}
